package cn.tedu.tmall.admin.mall.startup;

import cn.tedu.tmall.admin.mall.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class GoodsSearchRunner implements ApplicationRunner {
    @Autowired
    private IGoodsService service;
    @Override
    public void run(ApplicationArguments args) throws Exception {
       service.rebuildSearch();
    }
}
